package com.rmc.http.accesser;

import java.io.File;
import java.util.Map;

/**
 * User: Administrator
 */
public interface HttpRequest extends Cloneable {
	HttpRequest enc(String enc);

	HttpRequest method(HttpMethod method);

	HttpRequest param(String... params);

	HttpRequest param(String paramName, String paramValue);

	HttpRequest param(Map<String, String> params);

	HttpRequest fileParam(String name, File value);

	HttpRequest header(String name, String value);

	String submit() throws HttpException;

	File submitForFile() throws HttpException;

	HttpRequest proxy(String hostUri);

	HttpRequest clearParams();

	HttpRequest clearFileParams();

	HttpRequest clearAllParams();

	HttpRequest clearHeaders();
}
